package com.example.boot_mq_produce.com.mmall;

import com.example.boot_mq_produce.MainApp_Produce;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.web.WebAppConfiguration;

import javax.annotation.Resource;

/**
 * @ClassName TestActiveMQ
 * @Description TODO
 * @Author wushaopei
 * @Date 2019/12/25 14:51
 * @Version 1.0
 */
@SpringBootTest(classes = MainApp_Produce.class)
@RunWith(SpringJUnit4ClassRunner.class)
@WebAppConfiguration
public class TestActiveMQ {

    @Resource
    private  Queue_Produce queue_produce;

    @Test
    public void testSend(){

        queue_produce.produceMsg();
    }
}
